﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace Chen.IdentityServer4
{
    /// <summary>
    /// ButtonAuthority 角色按钮权限
    ///</summary>
    [SugarTable("ButtonAuthority")]
    public class ButtonAuthority
    {
        /// <summary>
        /// 按钮权限ID 
        ///</summary>
        [SugarColumn(ColumnName = "ButtonAuthorityID", IsPrimaryKey = true, IsIdentity = true)]
        public int ButtonAuthorityID { get; set; }
        /// <summary>
        /// 角色ID 
        ///</summary>
        [SugarColumn(ColumnName = "RoleID")]
        public int RoleID { get; set; }
        /// <summary>
        /// 按钮ID 
        ///</summary>
        [SugarColumn(ColumnName = "ButtonID")]
        public int ButtonID { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime CreateTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "CreateBy")]
        public int CreateBy { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        ///  
        ///</summary>
        [SugarColumn(ColumnName = "UpdateBy")]
        public int UpdateBy { get; set; }
        /// <summary>
        ///  
        /// 默认值: ((1))
        ///</summary>
        [SugarColumn(ColumnName = "Status")]
        public bool Status { get; set; }
    }
}
